import request from '@/utils/request'

// 试剂类型-查询
export function listReagentType() {
  return request({
    url: '/sjt/productType/list',
    method: 'get',
  })
}

// 查询定时任务调度详细
export function newReagentType(type) {
  const data = {
    type,
  }
  return request({
    url: '/sjt/productType',
    method: 'post',
    data
  })
}

// 删除试剂类型
export function delReagentType(typeId) {
  return request({
    url: '/sjt/productType/' + typeId,
    method: 'delete'
  })
}

// 修改试剂类型
export function editReagentType(data) {
  return request({
    url: '/sjt/productType',
    method: 'put',
    data,
  })
}
